package com.netease.task.service;


import com.netease.task.meta.Book;

import java.util.List;

public interface BookService {

    List<Book> getBooks();

    int addBook(Book book);

    int deleteBook(Integer id);

    Book getBookById(Integer id);

    Integer getIdByTitle(String title);

    int updateById(Book book);

    List<Book> getBooksNoSell();

    List<Book> getBooksSelled();

    int updateIsSell(Integer id);

}
